package com.tedu.basic.Test;

public class Test_ForPlus {
    public static void main(String[] args) {
        num();
    }
    //9*9 乘法表
    public static void num(){
        for (int i = 1; i <=9 ; i++) {

            for (int j = 1; j <=i; j++) {
                //强迫症。。。if
                if((i==3||i==4)&&j==3){
                    System.out.print(" ");
                }
                System.out.print(i+"*"+j+"="+(i*j)+" ");

            }
            System.out.println();

        }

    }
    //打印左直角三角形
    public static void test(){
        for (int i = 0; i < 7; i++) {
            for (int j = 0; j < i; j++) {
                System.out.print(0);
            }
            System.out.println();
        }

    }

}

